//
//  UserGroupMapViewController.h
//  MapLink
//
//  Created by student on 5/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MapKit.h>
#import "MapAnnotation.h"
#import "MeetingPlaceAnnotation.h"
#import "NotificationListViewController.h"
#import "NotificationCreateViewController.h"
#import "UIViewPassValueDelegate.h"

@interface UserGroupMapViewController : UIViewController <CLLocationManagerDelegate, MKMapViewDelegate, UIAlertViewDelegate> {
	NSObject<UIViewPassValueDelegate> * delegate;
	NotificationListViewController *notificationListViewController;
	NotificationCreateViewController *notificationCreateViewController;
	CLLocationManager *locationManager;

	NSString *groupName;
	NSString *displayName;
	NSString *deviceID;
	CLLocationCoordinate2D currentLocation;
	NSTimer *timer;
	NSMutableData *buffer;
	NSURLConnection *conn;
	MapAnnotation *maMe; 
	MeetingPlaceAnnotation *daMeetingpoint;
	BOOL isDragging;
	BOOL isGroupOwner;
	int numberOfNotifications;
	
	IBOutlet MKMapView *mapView;
	IBOutlet UIToolbar *toolbar;
	IBOutlet UIBarButtonItem *buttonNotification;
	IBOutlet UIBarButtonItem *buttonMeetingPoint;
}
@property (nonatomic, retain) NSObject<UIViewPassValueDelegate> * delegate;
@property (nonatomic, assign) NSString *groupName;
@property (nonatomic, assign) NSString *displayName;
@property (nonatomic, assign) NSString *deviceID;
@property (nonatomic, retain) NSMutableData *buffer;

-(IBAction) findMe;
-(IBAction) meetingPoint;
-(IBAction) displayNotifications;
- (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;


@end
